package com.javaeedev.junit;

import java.util.List;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) {
        Cache cache = new Cache();
        List<Thread> threads = new ArrayList<Thread>();
        threads.add(new WritingThread(cache));
        for(int i=0; i<100; i++)
            threads.add(new ReadingThread(cache));
        // start:
        for(Thread t : threads)
            t.start();
    }
}
